<?php
//
// +------------------------------------------------------------------------+
// | PHP Version 5.4                                                        |
// +------------------------------------------------------------------------+
// | Copyright (c) All rights reserved.                                     |
// +------------------------------------------------------------------------+
// | 世纪车来车往(北京）网络科技有限公司 版权所有！                         |
// | TEL:010-63732365  HOTLINE:400-6688-365  EMAIL:clcw@clcw.com.cn         |
// | $Revision: 1.0 $                                                       |
// +------------------------------------------------------------------------+
// | Author: anguolei@clcw.com.cn                                           |
// +------------------------------------------------------------------------+
//
namespace AuctionCore\Other;


/**
 * 代金券日志记录
 * @author  angl
 */
class CouponLog
{
    public function __construct()
    {
    }

    /**
     * 新增代金券记录
     * $dealer_id,
     * $coupon_id, $coupon_no,
     * $occur_type,
     * $cost_type,
     * $occur_money,
     * $order_id = 0,
     * $remark = ''
     */
    public static function add($log)
    {
        $log['occur_time'] = $log['createtime'] = date("Y-m-d H:i:s");
        return M('coupon_log')->add($log);
    }
}